package com.umakr.ax.common.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.umakr.ax.common.model.SeekHelpInfo;
import com.umakr.ax.common.vo.SeekHelpInfoVO;
import com.umakr.ax.core.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
public interface SeekHelpInfoMapper extends BaseMapper<SeekHelpInfo> {

    Map<String,Object> detail( @Param("id")Long id);
    Long save(SeekHelpInfo seekHelpInfo);
    void update(SeekHelpInfo seekHelpInfo);

    Page<SeekHelpInfoVO> load();

    Page<SeekHelpInfoVO> loadSelf( @Param("userId")Long userId);

    void updateSeekHelpInfoPushStatus(@Param("id") Long id,@Param("pushStatus") Integer pushStatus);

    void updateSeekHelpInfoDealStatus(@Param("id") Long id,@Param("dealStatus") Integer dealStatus);

    void delSeekHelpInfo(@Param("id") Long id,@Param("delStatus") Integer delStatus);

    Page<?> listRsPubSeekHelpInfo(@Param("rsId") Long rsId,@Param("searchText") String searchText);

    void saveSeekHelpInfo(SeekHelpInfo seekHelpInfo);
}